/**
 * Model representing a Staff object
 */
Ext.define('Sisconsolid.model.Staff', {
      extend: 'Sisconsolid.model.Base',    
      idProperty: 'id',
      fields: [
            // id field
            {
                  name: 'id',
                  type: 'int',
                  useNull : true
            },
            // simple values
            {
                  name: 'firstName',
                  type: 'string'
            },
            {
                  name: 'lastName',
                  type: 'string'
            },
            {
                  name: 'dob',
                  type: 'date',
                  dateWriteFormat: 'Y-m-d'
            },
            {
                  name: 'address1',
                  type: 'string'
            },
            {
                  name: 'address2',
                  type: 'string'
            },
            {
                  name: 'city',
                  type: 'string'
            },
            {
                  name: 'state',
                  type: 'string'
            },
            {
                  name: 'postalCode',
                  type: 'string'
            },
            {
                  name: 'phone',
                  type: 'string'
            },
            {
                  name: 'hireDate',
                  type: 'date',
                  dateWriteFormat: 'Y-m-d'
            },
            // relational properties
            {
                  name: 'position',
                  type: 'auto'
            },
            // decorated properties
            {
                  name: 'positionValue',
                  type: 'string',
                  persist: false
            }
      ] 
});